package com.hwadee.property.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hwadee.property.pojo.Repair;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface RepairMapper extends BaseMapper<Repair> {

    List<Repair> getRepairsPage(@Param("processingStatus") String processingStatus,
                                @Param("communityId") Long communityId,
                                @Param("size") int size,
                                @Param("offset") int offset);

    int countRepairs(@Param("processingStatus") String processingStatus,
                     @Param("communityId") Long communityId);
}
